import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, ValidateNested } from 'class-validator';
import { Type } from 'class-transformer';
import { DeviceMetaRequestDto } from './device-meta.dto';

export class UpdateDeviceMetadataDto {
  @ApiProperty({
    description: 'Device metadata to update (will be merged with existing metadata)',
    type: DeviceMetaRequestDto,
  })
  @ValidateNested()
  @Type(() => DeviceMetaRequestDto)
  @IsNotEmpty()
  metadata: DeviceMetaRequestDto;
}
